<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateUserInfosTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('user_infos', function (Blueprint $table) {
            $table->bigIncrements('user_id');
            $table->string('ali_name')->nullable()->comment('支付宝名称');
            $table->string('ali_account')->nullable()->comment('支付宝帐户');
            $table->string('ali_parentid')->nullable()->comment('合作伙伴身份（PID）');
            $table->string('ali_key')->nullable()->comment('MD5密钥');
            $table->string('wechat_name')->nullable()->comment('微信名称');
            $table->string('wechat_account')->nullable()->comment('微信帐户');
            $table->string('wechat_parentid')->nullable()->comment('合作伙伴身份（PID）');
            $table->string('wechat_key')->nullable()->comment('MD5密钥');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('user_infos');
    }
}
